package edu.suda.LoopCodePlus.service;

import edu.suda.LoopCodePlus.entity.Solution;

import java.util.List;

public interface SolutionService {
    /** 获取一道题目的所有题解 */
    List<Solution> findAllSolution(Integer problemId);
    /** 插入新题解 */
    boolean insertSolution(Solution solution);
    /** 更新题解 */
    Integer updateSolution(Integer userId, Integer solutionId ,Solution solution);
    /** 删除题解 */
    Integer deleteSolution(Integer solutionId, Integer userId);
    /** 查找题解 */
    Solution findSolutionById(Integer solutionId);
}
